package br.com.vemtransporte;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class TelaLogin extends Activity {
    /** Called when the activity is first created. */
	
	Button btCadastro, btEntrar;
	EditText edTxtLogin, edTxtSenha;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.telalogin);
        
        btCadastro = (Button) findViewById(R.id.btCadastro);
        btEntrar = (Button)  findViewById(R.id.btEntrar);
        
        btCadastro.setOnClickListener(new View.OnClickListener() {
		
			public void onClick(View v) {
				
				edTxtLogin = (EditText) findViewById(R.id.editTextLogin);
				
				Intent chamarCadastro = new Intent(v.getContext(), TelaCadastro.class);
				startActivity(chamarCadastro);
				finish();
			}
			
			
			
			
		});
        
        btEntrar.setOnClickListener(new View.OnClickListener() {
    		
			public void onClick(View v) {
				
				edTxtLogin = (EditText) findViewById(R.id.editTextLogin);
				
				Intent chamarEntrar = new Intent(v.getContext(), MenuPrincipal.class);
				startActivity(chamarEntrar);
				finish();
			}
    	});
        }
    
}
        
       
		
		
	
        
        
    
    
 
